<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
  <head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2007. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <meta http-equiv="Content-Style-Type" content="text/css">
    <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
    <title>
      Suspending Threads
    </title>
  </head>
  <body>
    <h1>
      Suspending Threads
    </h1>
    <p>
      To suspend an executing thread:
    </p>
    <ol>
      <li>
        Select the thread in the <a href="../reference/views/debug/ref-debug_view.htm"><strong>Debug View</strong></a>.      </li>
      <li>
      Click the <strong><a href="../reference/views/debug/ref-suspend.htm">Suspend</a></strong> button  [ <img src="../images/org.eclipse.debug.ui/elcl16/suspend_co.svg" alt="Suspend"> ]  in the  view toolbar.</li>
    </ol>
    <p>The thread suspends its execution. The current call stack for the thread is
    displayed, and the current line of execution is highlighted in the editor in the <strong>Debug Perspective</strong>. </p>
    <p>
      When a thread suspends, the top stack frame of the thread is automatically
      selected.&nbsp; The <a href="../reference/views/variables/ref-variables_view.htm"><strong>Variables View</strong></a> shows the stack frame's variables and
      their values.&nbsp; Complex variables can be further examined by expanding
      them to show the values of their members.    </p>
    <p>
      When a thread is suspended and the cursor is hovered over a variable in the Java editor, the value of that variable is displayed.
    </p>
    <h3 class="related">Related Concepts</h3>
      <a href="../concepts/cdebugger.htm">Debugger</a><br>
      <a href="../concepts/concept-java-editor.htm">Java editor</a><br>
      <a href="../concepts/concept-java-perspective.htm">Java perspectives</a>
    <h3 class="related">Related Tasks</h3>
      <a href="task-catching_exceptions.htm">Catching Java exceptions</a><br>
      <a href="task-evaluating_expressions.htm">Evaluating expressions</a><br>
      <a href="task-resuming_threads.htm">Resuming the execution of suspended threads</a><br>
      <a href="task-stepping.htm">Stepping through the execution of a program</a>
    <h3 class="related">Related References</h3>
      <a href="../reference/views/debug/ref-debug_view.htm">Debug view</a><br>
      <a href="../reference/views/debug/ref-resume.htm">Resume command</a> <br>
      <a href="../reference/views/debug/ref-suspend.htm">Suspend command</a> <br>
      <a href="../reference/views/variables/ref-variables_view.htm">Variables view</a>
  </body>
</html>

